package sixPrinciples.singleResponsibility;
class Animal2{  
    public void breathe(String animal){  
        System.out.println(animal+"呼吸空气");  
    }  
  
    public void breathe2(String animal){  
        System.out.println(animal+"呼吸水");  
    }  
}  
  
public class Client3{  
    public static void main(String[] args){  
        Animal2 animal = new Animal2();  
        animal.breathe("牛");  
        animal.breathe("羊");  
        animal.breathe("猪");  
        animal.breathe2("鱼");  
    }  
} 
